package org.feiye.studyday07;

import java.util.Scanner;

public class Arrays {

	public static void main(String[] args) {
//		double[] nums = { 18, 18, 19, 49, 49 };
//		for (int i = 0; i < nums.length; i++) {
//			System.out.println(nums[i]);
//		}
//		double[] nums = new double[] { 18, 18, 19, 49, 49 };
//		for (int i = 0; i < nums.length; i++) {
//			System.out.println(nums[i]);
//		}
		double[] arrs = new double[5];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < arrs.length; i++) {
			System.out.println("请输入第" + (i + 1) + "个值：");
			arrs[i] = sc.nextDouble();
		}
		for (int i = 0; i < arrs.length; i++) {
			System.out.println(arrs[i]);
		}
	}

}
